package  
{
	import org.flixel.*;

	public class Global
	{
		static public var lol:Number = 10;
		
		static public var playerHealth:Number;
		static public var equipNumber:Number;
		/*HOW equipNumber WORKS.
		 * each distinct piece of equipment will be assigned a prime number.
		 * to test if the player has the right equipment, we run the test:
		 * if (Variables.equipNumber % itemNumber == 0) do blah blah
		 * when adding equipment we simply do (Variables.equipNumber *= itemNumber)
		 * 
		 * this way the only way to return true in the if statement is if the item number is a factor of it,
		 * and since the item number is a prime number, there is no way to return true unless
		 * the equipnumber was multiplied by it.
		 */
		
		static public var cameraObject:FlxObject = new FlxObject();
		 
		
		static public var gameTextData:Array = [
			["I am saying something important about the plot.",
			"What I am saying is so significant that you must read every word of it.",
			"I'm also going to talk for a very long time; so long that this text may even overlap our sprites.",
			"If that happens then it means the end of the world, so I should probably stop talking, but there's more that I must tell you so that you can keep the balance between the rifts.",
			"Whatever you do, don't eat the salad."],
			
			["Oh, I'm just here because the programmers put me here. Move along."]
		];
			
		//static public var cameraC
		
		static public function sideCameraToggle(x:Number, y:Number, time:Number):void {
			var sideCam:FlxCamera = new FlxCamera(FlxG.camera.x + 570 , FlxG.camera.y + 450, 75, 75, 2);
			sideCam.follow(Global.cameraObject);
			FlxG.addCamera(sideCam);
			Global.cameraObject.x = x;
			Global.cameraObject.y = y;
		}
		
	}

} 